package com.cgydu.dao;

import com.cgydu.entity.Item;
import com.cgydu.entity.Orders;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * projectName: day25_store
 * author: CGY
 * time: 2020/9/19 14:56
 * description:
 */
public interface OrdersDao {
    void insertOrders(Orders orders) throws SQLException;

    void insertItems(List<Item> items) throws SQLException;

    List<Orders> selectOrdersByUid(int uid)throws SQLException, InvocationTargetException, IllegalAccessException;

    Orders selectOrdersByOid(String oid)throws InvocationTargetException, IllegalAccessException, SQLException;

    List<Item> selectItemsByOid(String oid)throws SQLException, InvocationTargetException, IllegalAccessException;

    void updateStateByOid(String oid)throws SQLException;
}